﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Stu_sys.Entity;

namespace Stu_sys.EntityConfig
{
    public class DepartmentEntityConfig : IEntityTypeConfiguration<Department>
    {
        public void Configure(EntityTypeBuilder<Department> builder)
        {
            builder.Property(d => d.DepName).HasColumnType("varchar(30)");
            builder.Property(d => d.DepCode).HasColumnType("varchar(30)");
        }
    }
}
